package com.itemDevelop.items.itemTest.grid.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.itemDevelop.items.itemTest.common.entity.IdEntity;


/**
 * grid的列实体对象
 */
@Entity
@Table(name = "ui_grid_column")
public class GridColumn extends IdEntity
{
	private static final long serialVersionUID = -7989472961002735376L;
	private Long gridId;// bigint(20) grid编号
	private String header;// varchar(32) 表头文字
	private String name;// varchar(32) 与数据模型对应的字段
	private String align;// varchar(8) 列文字对齐方式，可以为''''left''''、''''center''''、''''right''''之中的一个
	private Integer width;// varchar(32) 列的宽度，取值为Number或者'autoExpand'。注意只能有一个列被设置为'autoExpand'属性
	private Integer wrap;// varchar(8) 是否自动换行，取值为true或者false
	private String renderer;// varchar(1024) 列的渲染函数，接受3个参数，v表示当前值，rowData表示当前行数据，rowIndex表示当前行号(从0开始)
	private Integer status;// tinyint(2) 是否有效:1是;0否
	private Integer sno;// tinyint(2) 排序
	private Integer row;// tinyint(2) 列处于第N行
	private Integer rowspan;// tinyint(2) 跨多少行
	private Integer colspan;// tinyint(2) 跨多少列
	private String editor;// editor编辑参数
	private String sort;// 排序,默认不排序,可选:clientSide,serverSide

	public Long getGridId()
	{
		return gridId;
	}

	public void setGridId(Long gridId)
	{
		this.gridId = gridId;
	}

	public String getHeader()
	{
		return header;
	}

	public void setHeader(String header)
	{
		this.header = header;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getAlign()
	{
		return align;
	}

	public void setAlign(String align)
	{
		this.align = align;
	}

	public Integer getWidth()
	{
		return width;
	}

	public void setWidth(Integer width)
	{
		this.width = width;
	}

	public Integer getWrap()
	{
		return wrap;
	}

	public void setWrap(Integer wrap)
	{
		this.wrap = wrap;
	}

	public String getRenderer()
	{
		return renderer;
	}

	public void setRenderer(String renderer)
	{
		this.renderer = renderer;
	}

	public Integer getStatus()
	{
		return status;
	}

	public void setStatus(Integer status)
	{
		this.status = status;
	}

	public Integer getSno()
	{
		return sno;
	}

	public void setSno(Integer sno)
	{
		this.sno = sno;
	}

	public Integer getRow()
	{
		return row;
	}

	public void setRow(Integer row)
	{
		this.row = row;
	}

	public Integer getRowspan()
	{
		return rowspan;
	}

	public void setRowspan(Integer rowspan)
	{
		this.rowspan = rowspan;
	}

	public Integer getColspan()
	{
		return colspan;
	}

	public void setColspan(Integer colspan)
	{
		this.colspan = colspan;
	}

	public String getSort()
	{
		return sort;
	}

	public void setSort(String sort)
	{
		this.sort = sort;
	}

	public String getEditor()
	{
		return editor;
	}

	public void setEditor(String editor)
	{
		this.editor = editor;
	}

}
